home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / brailler-04b-c / brlr ƒ / Shell ƒ / graphics dispatch.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  1.7 KB  |  36 lines  |  [TEXT/MMCC]

  1. #ifndef __GRAPHICS_DISPATCH_H__
  2. #define __GRAPHICS_DISPATCH_H__
  3.  
  4. enum DispatchError        /* return codes from window dispatch procedures */
  5. {
  6.     kSuccess=0,            /* message handled, no further processing please */
  7.     kFailure,            /* message not handled, use default action if any */
  8.     kCancel,            /* message refused, cancel action (only good with kClose) */
  9.     kPassThrough        /* returned by floating window; pass message to front document window */
  10. };
  11.  
  12. enum DispatchError SetupWindowDispatch(short index, WindowPtr theWindow);
  13. enum DispatchError ShutdownWindowDispatch(short index);
  14. enum DispatchError OpenWindowDispatch(short index);
  15. enum DispatchError CloseWindowDispatch(short index);
  16. enum DispatchError DisposeWindowDispatch(short index);
  17. enum DispatchError DrawWindowDispatch(short index, short theDepth);
  18. enum DispatchError ChangeDepthDispatch(short index, short newDepth);
  19. enum DispatchError CopybitsDispatch(short index, WindowPtr offscreenWindow);
  20. enum DispatchError IdleWindowDispatch(short index, Point mouseLoc);
  21. enum DispatchError ActivateWindowDispatch(short index);
  22. enum DispatchError DeactivateWindowDispatch(short index);
  23. enum DispatchError GrowWindowDispatch(short index);
  24. enum DispatchError ZoomWindowDispatch(short index);
  25. enum DispatchError GetGrowSizeDispatch(short index, Rect *sizeRect);
  26. enum DispatchError KeyDownDispatch(short index, unsigned char theChar);
  27. enum DispatchError MouseDownDispatch(short index, Point thePoint);
  28. enum DispatchError UndoDispatch(short index);
  29. enum DispatchError CutDispatch(short index);
  30. enum DispatchError CopyDispatch(short index);
  31. enum DispatchError PasteDispatch(short index);
  32. enum DispatchError ClearDispatch(short index);
  33. enum DispatchError SelectAllDispatch(short index);
  34.  
  35. #endif
  36.